package org.llc.user.client;

import org.llc.common.model.UserInfoDTO;
import org.llc.common.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * 用户信息远程调用
 * @author llc
 * @date 2019/12/17 16:31
 * @since 1.0.0
 */
@FeignClient(value = "user-info-service")
public interface UserInfoClient {

    /**
     * 初始化用户账户
     * @param reqUserInfoInitializeDTO  初始化用户账户DTO
     * @return com.alibaba.fastjson.JSONObject
     * @author llc
     * @date 2020/5/15 12:27
     */
    @RequestMapping(value = "/api/v1/userinfo/unAuthenticated/initialize", method = RequestMethod.POST ,consumes = MediaType.APPLICATION_JSON_VALUE)
    Result initializeUserInfo(@RequestBody UserInfoDTO reqUserInfoInitializeDTO);

}

